<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <h1>我是产品列表</h1>
    <ul>
      <% pData.forEach(item=>{ %>
      <li>
        <a href="./productDetail?id=<%=item.id %>"
          >产品名称: <%=item.pname %> 价钱是: <%=item.price %></a
        >
      </li>
      <% }) %>
  </body>
</html>
